package com.qfmy.web.app.controller.conmon;

import com.qfmy.common.result.Result;
import com.qfmy.web.app.service.conmon.UserTaskProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.controller.conmon
 * @date 2025/11/6
 * @description 签到任务进度
 */
@RestController
@RequestMapping("/app/userTaskProgress")
@SuppressWarnings("all")
public class UserTaskProgressController {

    /**
     * 签到任务service
     */
    @Autowired
    private UserTaskProgressService userTaskProgressService;


    /**
     * 提交签到任务
     */
    @RequestMapping("/commitUserTaskProgress")
    public Result commitUserTaskProgress( @RequestParam Integer count,@RequestParam Integer targetCount) {
        userTaskProgressService.commitUserTaskProgress(count,targetCount);
        return Result.ok();
    }

}
